package com.second.hand.trading.server.dao;

import com.second.hand.trading.server.model.IntergralModel;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface IntergralDao {
    int incrAccount(String phone);

    IntergralModel getByPhone(String phone);

    void insert(@Param("phone") String phone,@Param("amount") Long amount);

    int decrAccount(@Param("phone") String phone,@Param("amount") Long amount);
}
